package com.dataseek.iot.mysql.entity;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;

import io.swagger.annotations.ApiModel;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 
 * </p>
 *
 * @author cc
 * @since 2021-09-17
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "动态规则")
public class ActivityRule implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * ID
     */
    @TableId(value = "activity_rule_inner_id", type = IdType.AUTO)
    private Long activityRuleInnerId;

    /**
     * 任务ID
     */
    private Long taskId;

    /**
     * 事件
     */
    private String event;

    /**
     * 规则内容
     */
    private String ruleValue;

    /**
     * 优先级
     */
    private Boolean priority;

    /**
     * 反馈类型
     */
    private Boolean awardType;

    /**
     * 反馈次数
     */
    private Boolean sendAwardTime;

    /**
     * 创建者
     */
    private String creator;

    /**
     * 是否发布
     */
    private Boolean used;

    /**
     * 是否通过sms通知
     */
    private String isSmsNotice;

    /**
     * 创建时间
     */
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private String createTime;

    /**
     * 更新时间
     */
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private String updateTime;

    /**
     * 规则名称
     */
    private String ruleName;


}
